
package com.probiz.estore.eai.catalog;

import com.probiz.estore.common.service.ProductCategoryService;
import com.probiz.estore.eai.catalog.generated.InventoryClassSet;
import com.probiz.estore.eai.common.GenericUnmarshaller;

public class InventoryClassUnmarshaller extends
		GenericUnmarshaller<InventoryClassSet> {
	private ProductCategoryService	categoryService;

	public void setCategoryService(ProductCategoryService categoryService) {
		this.categoryService = categoryService;
	}

	@Override
	public void startUnmarshal() throws Exception {
		InventoryClassSet inventoryClassSet = this.getEntitySet();
		categoryService.doImportCategoriesForEai(inventoryClassSet
				.getInventoryclass());

	}

	// @Override
	// protected String getTargetXmlFilePath(){
	// //得到eai.properties文件中相关的路径配置
	// return eaiUtil.getConfig( "inventoryClass.importXmlFile");
	// }

}
